package cn.jtool.dig.server.service;

import cn.jtool.dig.server.dao.entity.License;
import cn.jtool.dig.server.dao.entity.PortMapping;
import cn.jtool.dig.server.domain.reqeust.LicenseParams;
import cn.jtool.dig.server.domain.reqeust.LicenseQueryRequest;
import cn.jtool.dig.server.domain.response.LicenseDetailResponse;
import cn.jtool.dig.server.domain.response.LicenseListResposne;
import cn.jtool.knife.core.result.ResultEntity;
import cn.jtool.knife.core.service.*;

public interface LicenseService extends Create<LicenseParams>,
        Delete<Integer>,
        Update<Integer, LicenseParams, LicenseDetailResponse>,
        SelectOne<Integer, LicenseDetailResponse>,
        SelectList<LicenseQueryRequest, LicenseListResposne> {

    ResultEntity<License> auth(String ip, String secretKey);
}
